package com.javacoo.xservice.base.exception;

import com.javacoo.xservice.base.support.HttpCode;

/**
 * 远程接口调用异常
 * <p>说明:</p>
 * <li></li>
 * @author DuanYong
 * @since 2017年2月8日下午4:33:57
 */
@SuppressWarnings("serial")
public class RemoteException extends BaseException {
	public RemoteException() {
	}

	public RemoteException(Throwable ex) {
		super(ex);
	}

	public RemoteException(String message) {
		super(message);
	}
	public RemoteException(String code,String message) {
		super(code,message);
	}
	public RemoteException(String message, Throwable ex) {
		super(message, ex);
	}

    public RemoteException(String message, String... params) {
        super(format(message, (Object[]) params));
    }
    public RemoteException(String code, String message, String... params) {
        super(code,format(message, (Object[]) params));
    }
    public RemoteException(String message, Throwable ex, String... params) {
        super(format(message, (Object[]) params),ex);
    }
	@Override
	protected HttpCode getHttpCode() {
		return HttpCode.REQUEST_TIMEOUT;
	}
}